package com.liu.voluntary.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("voluntary_user")
public class User {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String mobile;

    private String nickname;
    private String password;

    @TableField(fill = FieldFill.INSERT)
    private Date registerDate;

    @TableField(fill = FieldFill.INSERT_UPDATE )
    private Date updateDate;

    private Integer totalVolunteerHours;
}
